<jsp:useBean id="registration" 
             class="it.polimi.Mir_1.paw.RegistrazioneBean"
             scope="request" />





<jsp:setProperty name="registration" property="*"  />

<%
    if (registration.isValid()) {
        // dati corretti, mostra il riepilogo (welcome)
        %> <jsp:forward page="viewRegistrationWelcome.jsp"/> <%
    } else {
        // dati errati o mancanti, rigenera il form
        %> <jsp:forward page="viewRegistrationForm.jsp"/> <%
    }
%>